package com.fz.us.oa.core.service.com.impl;

import com.fz.us.admin.company.dao.BaseFlowDao;
import com.fz.us.admin.company.service.impl.BaseFlowServiceImpl;
import com.fz.us.oa.core.dao.com.PerformDetailDao;
import com.fz.us.oa.core.entity.com.ContractPerform;
import com.fz.us.oa.core.entity.com.PerformDetail;
import com.fz.us.oa.core.service.com.PerformDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * Created by dzw on 2017/12/4.
 */
@Service
public class PerformDetailServiceImpl extends BaseFlowServiceImpl<PerformDetail,String> implements PerformDetailService {

    @Autowired
    PerformDetailDao performDetailDao;

    @Override
    public BaseFlowDao<PerformDetail, String> getBaseFlowDao() {
        return performDetailDao;
    }

    @Override
    public BigDecimal getPerformNum(ContractPerform contractPerform, String type) {
        return performDetailDao.getPerformNum(contractPerform,type);
    }
}
